package com.augmentum.login.model;

import java.io.Serializable;

public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;
    private String description;
    private String name;
    private int questionCount;
    private int totalScore;
    private int questionScore;
    private String beginTime;
    private int criteria;
    private int duration;
    private int state;
    private int changeCount;


    public Exam() {
        // empty
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(int questionCount) {
        this.questionCount = questionCount;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    public int getQuestionScore() {
        return questionScore;
    }

    public void setQuestionScore(int questionScore) {
        this.questionScore = questionScore;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public int getChangeCount() {
        return changeCount;
    }

    public void setChangeCount(int changeCount) {
        this.changeCount = changeCount;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public int getCriteria() {
        return criteria;
    }

    public void setCriteria(int criteria) {
        this.criteria = criteria;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Exam [id=");
        builder.append(id);
        builder.append(", description=");
        builder.append(description);
        builder.append(", name=");
        builder.append(name);
        builder.append(", questionCount=");
        builder.append(questionCount);
        builder.append(", totalScore=");
        builder.append(totalScore);
        builder.append(", questionScore=");
        builder.append(questionScore);
        builder.append(", beginTime=");
        builder.append(beginTime);
        builder.append(", criteria=");
        builder.append(criteria);
        builder.append(", duration=");
        builder.append(duration);
        builder.append("]");
        return builder.toString();
    }
}
